package com.longcai.cm.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author LBX
 * @since 2024-09-12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ja_goods_info")
@ApiModel(value = "JaGoodsInfo对象", description = "商品信息")
public class JaGoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("门店id")
    @TableField("shop_id")
    private String shopId;

    @ApiModelProperty("服务类型子项目")
    @TableField("service_info")
    private String serviceInfo;

    @ApiModelProperty("商品名称")
    @TableField("good_name")
    private String goodName;

    @ApiModelProperty("商品封面")
    @TableField("cover_img")
    private String coverImg;

    @ApiModelProperty("商品图片")
    @TableField("good_img")
    private String goodImg;

    @ApiModelProperty("排序号码")
    @TableField("order_no")
    private Integer orderNo;

    @ApiModelProperty("已售数量")
    @TableField("sale_count")
    private Integer saleCount;

    @ApiModelProperty("1普通 2秒杀")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("1上架 0下架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("商品价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("商品售价")
    @TableField("sale_price")
    private BigDecimal salePrice;

    @ApiModelProperty("会员价格")
    @TableField("vip_price")
    private BigDecimal vipPrice;

    @ApiModelProperty("商品详情")
    @TableField("good_detail")
    private String goodDetail;

    @ApiModelProperty("有效期(天)")
    @TableField("effective_duration")
    private Integer effectiveDuration;

    @ApiModelProperty("备注信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("1置顶")
    @TableField("is_top")
    private Integer isTop;

    @ApiModelProperty("商品评价")
    @TableField("comment")
    private Integer comment;

    @ApiModelProperty("上架截止时间")
    @TableField("expire_time")
    private String expireTime;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private String updateTime;

    @ApiModelProperty("佣金比例 （单位%）")
    @TableField("commission_rate")
    private BigDecimal commissionRate;


}
